<?php

namespace App\Modules\Home\Services;


use  App\Modules\Home\Models\Article;

class ArticleService
{
    /**
     * 任务列表
     * @param array $data
     * @return mixed
     */
    public static function getList($category_id) {
        return Article::getList($category_id);
    }

    /**
     * 任务详情
     * param int $task_id 任务ID
     */
    public static function getArticle($category_id){
        return Article::getArticle($category_id);
    }

    /**
     * 添加任务
     * param array $data
     */
    public static function addArticle($data=[]){
        return Article::addArticle($data);
    }

    /**
     * 更新任务
     * param int $task_id 任务ID
     */
    public static function updateArticle($data){
        return Article::updateArticle($data);
    }
}